package com.tff.demo.service.impl;

import com.tff.demo.mapper.UserMapper;
import com.tff.demo.pojo.User;
import com.tff.demo.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User selectUserOne(String username) {
        return userMapper.selectUserOne(username);
    }

    @Override
    public User selectUserAll() {
        return null;
    }

    @Override
    public int insertUser(User user) {
        return userMapper.insertUser(user);
    }

    @Override
    public int insertUsers(List<User> users) {
        return 0;
    }

    @Override
    public int updateUser(int id) {
        return 0;
    }

    @Override
    public int deleteUser(int id) {
        return 0;
    }
}
